package com.xbjtech.shiro;

import org.apache.shiro.authc.AuthenticationToken;

public class MobileCodeToken implements AuthenticationToken {

	private static final long serialVersionUID = -3860850427543924432L;

	private String mobile;
	
	private String code;
	
	public MobileCodeToken() {
		
	}
	
	public MobileCodeToken(String mobile, String code) {
		super();
		this.mobile = mobile;
		this.code = code;
	}

	@Override
	public Object getPrincipal() {
		return this.mobile;
	}

	@Override
	public Object getCredentials() {
		return this.code;
	}

}
